//
//  QSClient.h
//  QS
//
//  Created by jonn on 14-3-18.
//  Copyright (c) 2014年 seas.cheng. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Overcoat.h"
#import "Global.h"
#import "User.h"
#import "UserInfo.h"
#import "ProductDetail.h"
#import "ProductList.h"
#import "ProductEvaluation.h"
#import "QTArticle.h"
#import "ArticleDetail.h"
#import "EnterpriseInfo.h"
#import "QTSearchCategory.h"
#import "QTDetailCategory.h"
#import "AboutUsInfo.h"
#import "ProductRandomLabel.h"


@interface QSClient : OVCClient

// 全局 单例 victor
+ (QSClient *) instance;

// 用户登录
- (void)login:(NSString *)loginName loginPassword:(NSString *)loginPassword  completionBlock:(void (^)(User *user, NSError *error))block;
// 个人中心信息
- (void)loadUserInfo:(NSString *)puid completionBlock:(void (^)(UserInfo *userInfo, NSError *error))block;

// 产品信息列表
- (void)loadProductList:(NSNumber *)startIndex maxResults:(NSNumber *)maxResults productName:(NSString *)productName manufacturerName:(NSString *)manufacturerName productType:(NSString *)productType brand:(NSString *)brand keyWord:(NSString *)keyWord completionBlock:(void (^)(ProductList *productList, NSError *error))block;

// 产品详情
- (void)loadProductDetail:(NSString *)puid barCode:(NSString *)barCode completionBlock:(void (^)(ProductDetail *productDetail, NSError *error))block;

// 产品评价
- (void)loadEvaluationInfo:(NSString *)puid evaluationTypeId:(NSString *)evaluationTypeId startIndex:(NSNumber *)startIndex maxResults:(NSNumber *)maxResults completionBlock:(void (^)(ProductEvaluation *productEvaluation, NSError *error))block
;

// 资讯列表（新闻列表/抽检报告列表）

- (void)loadNewsList:(NSNumber *)articleMenuType startIndex:(NSNumber *)startIndex maxResults:(NSNumber *)maxResults productTypePuid :(NSString *) productTypePuid completionBlock:(void (^)(NSArray *articleList, NSError *error))block;


// 资讯详情（新闻详情）
- (void)loadNewsDetail:(NSString *)articleId completionBlock:(void (^)(ArticleDetail *articleDetail, NSError *error))block;


// 商品企业信息查询
- (void)findEnterpriseInfoById:(NSString *)puid completionBlock:(void (^)(EnterpriseInfo *enterpriseInfo, NSError *error))block;

// 分类搜索
- (void)searchWithCategory:(NSString *)flag completionBlock:(void (^)(QTSearchCategory *SearchCategory, NSError *error))block;

//主页广告
- (void)mainPagePic:(void (^)(QTDetailCategory *DetailCategory, NSError *error))block;

// 关于我们
- (void)loadAboutUsInfocompletionBlock:(void (^)( AboutUsInfo *aboutUsInfo, NSError *error))block;


//.摇一摇
- (void)getSearchLabels:(NSString *)parameters completionBlock:(void (^)(ProductRandomLabel *productRandomLabel, NSError *error))block;

@end
